<?PHP $this->_extends('_layouts/manager_layout');?>
<?PHP $this->_block('head');?>

<?PHP $this->_endblock();?>
<?PHP $this->_block('contents');?>
<h2 class="aa1">货币</h2>

<div class="tree">
<ul >
	<?php foreach($currencies as $s):  
		if($s['code']){unset($sourceCurrencies[$s['code']]);}
	?>
		<li><?=$s['title']?>  <a href="<?=url('/currencyEdit',array('id'=>$s['id']))?>" style="margin-left:20px">Edit</a>  
			<?php if($s['status']&1): ?> 
				<?php if($s['code']==$primanry):?>
					(primanry)
				<?php else:?>
					<a href="<?=url('/Currencystatusmodify',array('id'=>$s['id'],'status'=>'0'))?>" style="margin-left:20px" onclick="return confirm('确定停用吗')">Stop</a>
				<?php endif;?>
			<?php else: ?>
				<a href="<?=url('/Currencystatusmodify',array('id'=>$s['id'],'status'=>'1'))?>" style="margin-left:20px" onclick="return confirm('确定启用吗')">Install</a>
				&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="<?=url('/Currencystatusmodify',array('id'=>$s['id'],'cmd'=>'remove'))?>" style="margin-left:20px" onclick="return confirm('确定删除吗')">Remove</a>
			<?php endif; ?>
		</li>
	<?php endforeach;?>
	<?php foreach($sourceCurrencies as $s):?>
		<li><?=$s['title']?> <a href="<?=url('/Currencystatusmodify',array('code'=>$s['code'],'status'=>'1'))?>" style="margin-left:20px" onclick="return confirm('确定启用吗')">Install</a>
		
		</li>
	<?php endforeach;?>
</ul>
</div>

<?PHP $this->_endblock();?>

